package com.zyr.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;

import lombok.Data;


@Data
public class Flower implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "flowerId", type = IdType.AUTO)
    private Integer flowerId;
    private Integer attributeId;

    private String flowerName;
    private Integer flowerPrice;
    private String flowerOrigin;
    private Integer flowerQuantity;



    @TableField(exist = false)   // exit=false说明表的数据库中没有这一列
    private String attributeName;

    @TableLogic
    private Integer deleted;

    // 自动填充配置
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

}
